using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ResetPawRequest : GeneratedMessageLite<ResetPawRequest, ResetPawRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ResetPawRequest, ResetPawRequest.Builder>
		{
			private bool resultIsReadOnly;
			private ResetPawRequest result;
			protected override ResetPawRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ResetPawRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ResetPawRequest DefaultInstanceForType
			{
				get
				{
					return ResetPawRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string ResetPawUrl
			{
				get
				{
					return this.result.ResetPawUrl;
				}
				set
				{
					this.SetResetPawUrl(value);
				}
			}
			public uint Paw
			{
				get
				{
					return this.result.Paw;
				}
				set
				{
					this.SetPaw(value);
				}
			}
			public Builder()
			{
				this.result = ResetPawRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ResetPawRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ResetPawRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ResetPawRequest other = this.result;
					this.result = new ResetPawRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ResetPawRequest.Builder Clear()
			{
				this.result = ResetPawRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ResetPawRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ResetPawRequest.Builder(this.result);
				}
				return new ResetPawRequest.Builder().MergeFrom(this.result);
			}
			public override ResetPawRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ResetPawRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is ResetPawRequest)
				{
					return this.MergeFrom((ResetPawRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ResetPawRequest.Builder MergeFrom(ResetPawRequest other)
			{
				return this;
			}
			public override ResetPawRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ResetPawRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ResetPawRequest._resetPawRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ResetPawRequest._resetPawRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasResetPawUrl = input.ReadString(ref this.result.resetPawUrl_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasPaw = input.ReadUInt32(ref this.result.paw_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ResetPawRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ResetPawRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ResetPawRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ResetPawRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ResetPawRequest.Builder SetResetPawUrl(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasResetPawUrl = true;
				this.result.resetPawUrl_ = value;
				return this;
			}
			public ResetPawRequest.Builder ClearResetPawUrl()
			{
				this.PrepareBuilder();
				this.result.hasResetPawUrl = false;
				this.result.resetPawUrl_ = "";
				return this;
			}
			public ResetPawRequest.Builder SetPaw(uint value)
			{
				this.PrepareBuilder();
				this.result.hasPaw = true;
				this.result.paw_ = value;
				return this;
			}
			public ResetPawRequest.Builder ClearPaw()
			{
				this.PrepareBuilder();
				this.result.hasPaw = false;
				this.result.paw_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int ResetPawUrlFieldNumber = 2;
		public const int PawFieldNumber = 3;
		private static readonly ResetPawRequest defaultInstance;
		private static readonly string[] _resetPawRequestFieldNames;
		private static readonly uint[] _resetPawRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasResetPawUrl;
		private string resetPawUrl_ = "";
		private bool hasPaw;
		private uint paw_;
		private int memoizedSerializedSize = -1;
		public static ResetPawRequest DefaultInstance
		{
			get
			{
				return ResetPawRequest.defaultInstance;
			}
		}
		public override ResetPawRequest DefaultInstanceForType
		{
			get
			{
				return ResetPawRequest.DefaultInstance;
			}
		}
		protected override ResetPawRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string ResetPawUrl
		{
			get
			{
				return this.resetPawUrl_;
			}
		}
		public uint Paw
		{
			get
			{
				return this.paw_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasPaw && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasResetPawUrl)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ResetPawUrl);
				}
				if (this.hasPaw)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Paw);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ResetPawRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] resetPawRequestFieldNames = ResetPawRequest._resetPawRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, resetPawRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasResetPawUrl)
			{
				output.WriteString(2, resetPawRequestFieldNames[2], this.ResetPawUrl);
			}
			if (this.hasPaw)
			{
				output.WriteUInt32(3, resetPawRequestFieldNames[1], this.Paw);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasResetPawUrl)
			{
				num ^= this.resetPawUrl_.GetHashCode();
			}
			if (this.hasPaw)
			{
				num ^= this.paw_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ResetPawRequest resetPawRequest = value as ResetPawRequest;
			return resetPawRequest != null && (this.hasBaseRequest == resetPawRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(resetPawRequest.baseRequest_))) && (this.hasResetPawUrl == resetPawRequest.hasResetPawUrl && (!this.hasResetPawUrl || this.resetPawUrl_.Equals(resetPawRequest.resetPawUrl_))) && (this.hasPaw == resetPawRequest.hasPaw && (!this.hasPaw || this.paw_.Equals(resetPawRequest.paw_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ResetPawRequest, ResetPawRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ResetPawRequest, ResetPawRequest.Builder>.PrintField("ResetPawUrl", this.hasResetPawUrl, this.resetPawUrl_, writer);
			GeneratedMessageLite<ResetPawRequest, ResetPawRequest.Builder>.PrintField("Paw", this.hasPaw, this.paw_, writer);
		}
		public static ResetPawRequest ParseFrom(byte[] data)
		{
			return ResetPawRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ResetPawRequest MakeReadOnly()
		{
			return this;
		}
		public static ResetPawRequest.Builder CreateBuilder()
		{
			return new ResetPawRequest.Builder();
		}
		public override ResetPawRequest.Builder ToBuilder()
		{
			return ResetPawRequest.CreateBuilder(this);
		}
		public override ResetPawRequest.Builder CreateBuilderForType()
		{
			return new ResetPawRequest.Builder();
		}
		public static ResetPawRequest.Builder CreateBuilder(ResetPawRequest prototype)
		{
			return new ResetPawRequest.Builder(prototype);
		}
		static ResetPawRequest()
		{
			ResetPawRequest.defaultInstance = new ResetPawRequest().MakeReadOnly();
			ResetPawRequest._resetPawRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Paw",
				"ResetPawUrl"
			};
			ResetPawRequest._resetPawRequestFieldTags = new uint[]
			{
				10u,
				24u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.ResetPawRequest.Descriptor, null);
		}
	}
}
